package com.hooper.user.client;

import com.hooper.hosp.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/10/09/20:10
 */
@Component
@FeignClient("service-user")
public interface UserClient {
    /**
     * 远程调用PatientController中的获取就诊人信息
     * @param id 就诊人id
     * @return
     */
    @GetMapping("/api/patient/inner/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);
}
